package camid.test.util;

public class AsyncCallRunnable implements Runnable{
	
	private int idx;

	private Object expected;
	
	private AsyncCall caller;
	
	public AsyncCallRunnable(int idx, Object expected, AsyncCall caller) {
		super();
		this.idx = idx;
		this.expected = expected;
		this.caller = caller;
	}

	@Override
	public void run() {
		try {
			caller.call(idx, expected);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
	
	

}
